import { TemplateRef } from '@angular/core';

export interface MessageOptions {
  lvMessageKey?: string;
  lvType?: 'success' | 'info' | 'warning' | 'error' | 'default';
  lvTitle?: string;
  lvContent?: string | TemplateRef<void>;
  lvRenderType?: 'html' | 'text';
  lvWidth?: string | number;
  lvMaxWidth?: string | number;
  lvDuration?: number;
  lvShowCloseButton?: boolean;
  lvShowIcon?: boolean;
  lvKeepShowOnHover?: boolean;
  lvPosition?: 'topLeft' | 'topCenter' | 'topRight';
  lvOffset?: {
    x: number;
    y: number;
  };
  lvContextData?: number | string | boolean | Array<any> | { [key: string]: any }; // 内容模板上下文数据
  lvOnDestroy?: () => void | object;
  lvOnShow?: () => void | object;
}
